﻿<Window x:Class="SsTool.Common.SelectPropertyTypeWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="SelectPropertyTypeWindow" Height="300" Width="500" WindowStartupLocation="CenterScreen">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        <DataGrid Name="_ctlGrid" BorderThickness="0" CanUserAddRows="False" IsReadOnly="True" AutoGenerateColumns="False">
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=Caption}" Header="Caption"/>
                <DataGridTextColumn Binding="{Binding Path=DbType}" Header="DbType"/>
                <DataGridTextColumn Binding="{Binding Path=MinLength}" Header="MinLength" />
                <DataGridTextColumn Binding="{Binding Path=MaxLength}" Header="MaxLength" />
                <DataGridTextColumn Binding="{Binding Path=Description}" Header="Description" Width="*"/>
            </DataGrid.Columns>
        </DataGrid>
        <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center" >
            <Button Content="Select" Name="_ctlBtnSelect" Click="_ctlBtnSelect_Click" Margin="5" />
            <Button Content="Close" Name="_ctlBtnClose" Margin="5" Click="_ctlBtnClose_Click" />
        </StackPanel>
    </Grid>
</Window>
